// src/App.jsx
import React from 'react';
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
import Login from './pages/login/login';
import PlantIndex from './pages/plant/plantIndex';
import EnvData from './pages/envData/envData';
import Claims from './pages/claims/claims';

function App() {
  return (
    <Router>
      <Routes>
        <Route path="/login" element={<Login />} />
        <Route path="/plantIndex" element={<PlantIndex />} />
        <Route path="/envData" element={<EnvData />} />
        <Route path="/claims" element={<Claims />} />
        <Route path="*" element={<Login />} />
      </Routes>
    </Router>
  );
}

export default App;